package com.drumbeatinsight.html
{
	import com.drumbeatinsight.html.HTMLElement;
	import com.drumbeatinsight.html.HTMLIFrame;
	import com.drumbeatinsight.html.HTMLDivision;
	import com.drumbeatinsight.html.HTMLEditor;
	
	public class HTMLChild
	{
		public static var element:HTMLElement;
		
		public static function createNew(elementType:String,o:*):HTMLElement {
			if (elementType=="iframe") {
				element = HTMLIFrame(new HTMLIFrame(o));
			}
			else if (elementType=="division") {
				element = HTMLDivision(new HTMLDivision(o));
			}
			else if (elementType=="editor") {
				element = HTMLEditor(new HTMLEditor(o));
			}
			return element;
		}
	}
}